# 使用官方JDK 11镜像作为基础镜像
FROM openjdk:11-jdk-slim

# 设置工作目录
WORKDIR /app

# 复制Maven构建的jar包到容器中
COPY target/*.jar app.jar

# 复制配置文件
COPY src/main/resources/application.yml /app/config/
COPY src/main/resources/application-dev.yml /app/config/

# 暴露应用端口
EXPOSE 8633

# 设置启动命令
ENTRYPOINT ["java", "-jar", "app.jar", "--spring.config.location=file:/app/config/application.yml,file:/app/config/application-dev.yml"] 